//
//  HUChatMoreView.h
//  YY键盘
//
//  Created by hu on 16/5/27.
//  Copyright © 2016年 hu. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  moreItem类型
 */
typedef NS_ENUM(NSUInteger, HUChatMoreItemType){
    HUChatMoreItemCamera = 0 /**< 显示拍照 */,
    HUChatMoreItemAlbum /**< 显示相册 */,
//    HUChatMoreItemLocation /**< 显示地理位置 */,
    HUChatMoreItemCase /**< 病例*/,
    HUChatMoreItemVideo /**< 视频聊天*/,
};
@class HUChatMoreView;

@protocol HUChatMoreViewDelegate <NSObject>
@optional
/**
 *  moreView选中的index
 *
 *  @param moreView 对应的moreView
 *  @param index    选中的index
 */
- (void)moreView:(HUChatMoreView *)moreView selectIndex:(HUChatMoreItemType)itemType;

@end
@protocol HUChatMoreViewDataSource <NSObject>

@required
/**
 *  获取数组中一共有多少个titles
 *
 *  @param moreView
 *  @param titles
 *
 *  @return
 */

- (NSArray *)titlesOfMoreView:(HUChatMoreView *)moreView;

/**
 *  获取moreView展示的所有图片
 *
 *  @param moreView
 *  @param imageNames
 *
 *  @return
 */
- (NSArray *)imageNamesOfMoreView:(HUChatMoreView *)moreView;

@end
/**
 *  更多view
 */
@interface HUChatMoreView : UIView

@property (weak, nonatomic) id<HUChatMoreViewDelegate> delegate;
@property (weak, nonatomic) id<HUChatMoreViewDataSource> dataSource;

@property (assign, nonatomic) NSUInteger numberPerLine;
@property (assign, nonatomic) UIEdgeInsets edgeInsets;

- (void)reloadData;

@end


